#include<iostream>
#include<string>
#include<vector>
#include<format>
using namespace std;
int main(){
  int n,m;
  cin>>n>>m;
  vector<string> question(m);
  for(auto&x:question) cin>>x;
  while(n--){
    string name;
    cin >> name;
    for(auto& x : question){
      string a;
      cin>>a;
      cout<<(a==format("{0}.zip/{0}/{1}/{1}.cpp",name,x)?"Fusu is happy!":"Fusu is angry!");
      cout<<endl;
    }
  }
}